package com.ybkj.daijia.server.service;

import com.ybkj.daijia.chart.DriverTimeVo;
import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Driver;
import com.ybkj.daijia.server.model.DriverTime;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * @author Shine
 */
public interface DriverTimeService {


    public void driverTimeOnline(Driver driver, Calendar calendar);

    public void driverTimeOffline(Driver driver, Calendar calendar);

    public Page<DriverTimeVo> pageDriverTime(Calendar calendar, String name, Long companyId);

    public Long countDriverTime(Integer year, String name, Long companyId);

    public List<DriverTimeVo> exportDriverTime(Calendar calendar, String name,
        Long companyId, boolean allAmount, Integer amounts);

    public List<DriverTime> listDriverTimeByDate(Date start, Date end);

    public Date getDriverLastOnlineTime(Long id, Calendar instance);


}
